<html>
<head>
<title>Image Store Test</title>
<script type="text/javascript" src="http://code.google.com/apis/gears/gears_init.js"></script>
<script type="text/javascript">
var localServer = google.gears.factory.create('beta.localserver');
var store = localServer.createStore('test-store');
captureId=store.capture("../images/banga.png", ourCallback);
captureId=store.capture("../images/magenta20.GIF", ourCallback);
captureId=store.capture("http://localhost:8080/testpage/imagetest.html",ourCallback);
captureId=store.capture("http://localhost:8080/image?horse",ourCallback);

function ourCallback(url, success, captureId)
{
	alert("in callback");
}
function switchImage()
{
	document.images[0].src="../images/magenta20.GIF";
}

</script>
</head>
<body>
<img src="http://localhost:8080/image?horse">
<img src="../images/banga.png">
<input type="button" value="switch image" onclick="switchImage()">
</body>
</html>